package org.spl.elevator.controller;

import java.util.ArrayList;

import org.spl.elevator.model.ElevatorDAO;
import org.spl.elevator.model.PanelDAO;

public class InternalPanelController {
	
	public void configPanel(ArrayList<ElevatorDAO> elevators, int numFloors, int maxSelectedButton){		
		for(int i = 0; i < elevators.size(); i++){
			PanelDAO intPanel = new PanelDAO();
			intPanel.setDisplayTemperature(true);
			intPanel.setNumButtons(numFloors);
			intPanel.setDisplayTime(true);
			intPanel.setColoringButton(true);
			intPanel.setBrailleButton(true);
			intPanel.setMaxSelectedButton(maxSelectedButton);
			intPanel.setVoiceCurrentFloor(true);
			intPanel.setShowPasswordPanel(true);
			elevators.get(i).setInternalPanel(intPanel);
		}
	}
	
	public void configPanel(ArrayList<ElevatorDAO> elevators, int numFloors){		
		for(int i = 0; i < elevators.size(); i++){
			PanelDAO intPanel = new PanelDAO();
			intPanel.setDisplayTemperature(true);
			intPanel.setNumButtons(numFloors);
			intPanel.setDisplayTime(true);
			intPanel.setColoringButton(true);
			intPanel.setBrailleButton(true);
			intPanel.setVoiceCurrentFloor(true);
			intPanel.setShowPasswordPanel(true);
			elevators.get(i).setInternalPanel(intPanel);
		}
	}
}
